<?php

namespace app\Admin\validate;

class ExamValidate extends BaseValidate
{
    /**
     * 定义验证规则
     * 格式：'字段名'	=>	['规则1','规则2'...]
     *
     * @var array
     */	
	protected $rule = [
        'title|考试名称' =>'require|isNotEmpty',
        'intro|考试说明' =>'require|isNotEmpty',
        'exam_time|考试时间' =>'require|isNotEmpty',
        'tab|考试类型' =>'require|isPositiveInt'
    ];
    
    /**
     * 定义错误信息
     * 格式：'字段名.规则名'	=>	'错误信息'
     *
     * @var array
     */	
    protected $message = [];
}
